package com.zhc.dejingapi.controller;


import com.zhc.dejingapi.entity.query.SelectReportQuery;
import com.zhc.dejingapi.entity.vo.ResultVo;
import com.zhc.dejingapi.service.DataService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 所有申请的数据 前端控制器
 * </p>
 *
 * @author zhc
 * @since 2024-09-26
 */
@RestController
@RequestMapping("/data-entity")
public class DataController {


    @Resource
    private DataService dataService;

    @PostMapping("/selectReport")
    public ResultVo selectReport(@RequestBody SelectReportQuery selectReportQuery) {
        return dataService.selectReport(selectReportQuery);
    }

    @PostMapping("/delData/{applyId}")
    public String delData(@PathVariable Long applyId) {
        return dataService.delData(applyId);
    }
}
